<?php

namespace app\admin\model\channel;
use think\Model;

class AppChannel extends Model
{
    protected $table = 't_app_channel';
    protected $connection="database.user";
    protected $resultSetType = 'collection';
    public static function getAll(){
        $ret['all'] = '全渠道';
        $data = self::field('channel,channel_name')->select()->toArray();
        $tmp = array_column($data,'channel_name','channel');
        return array_merge($ret,$tmp);
    }
}